<?php
session_start();
require_once("../models/Request.php");
class DeleteRequestController{
	var $ids;
	var $idarray;
	
	function deleteRequestIds(){
		$this->ids = $_REQUEST['ids'];
	}
	

	
}

	$a = new DeleteRequestController;
	$a->deleteRequestIds();
		$i=0;
		$part=strtok($a->ids,",");
		while($part!=""){
			$idarray[$i]=$part;
			$part=strtok(",");
			$i++;
		}
		$request = new Request;
		$request->connect();
		$request->deleteManyRequests($idarray);
	

?>